/*
 * Copyright 2019-2020 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package me.zhengjie.modules.security.config.bean;

import lombok.Data;

/**
 * 登录验证码配置信息
 *
 * @author liaojinlong
 * @date 2020/6/10 18:53
 */
@Data
public class LoginPolicy {

    /**
     * 连续登陆错误重试次数
     */
    private int loginRetryCount = 6;
    /**
     * 连续登陆失败锁定时间
     */
    private int loginLockTime = 6;
    /**
     * 密码过期时间(天)
     */
    private int passwdExpire = 360;
    /**
     * 密码最小长度
     */
    private int passwdMinLength = 6;
    /**
     * 密码最大长度
     */
    private int passwdMaxLength = 16;
    /**
     * 密码是否必须包含数字
     */
    private boolean passwdIncludeNumber = true;
    /**
     * 密码是否必须包含特殊字符
     */
    private boolean passwdIncludeSpecial = true;
    /**
     * 密码是否必须包含字母大小写
     */
    private boolean passwdIncludeUpperLower = true;

}
